import request from '@/utils/request'

// 查询大神标签列表
export function listGategory(query) {
  return request({
    url: '/system/gategory/list',
    method: 'get',
    params: query
  })
}

// 查询大神标签详细
export function getGategory(id) {
  return request({
    url: '/system/gategory/' + id,
    method: 'get'
  })
}

// 新增大神标签
export function addGategory(data) {
  return request({
    url: '/system/gategory',
    method: 'post',
    data: data
  })
}

// 修改大神标签
export function updateGategory(data) {
  return request({
    url: '/system/gategory',
    method: 'put',
    data: data
  })
}

// 删除大神标签
export function delGategory(id, status) {
  return request({
    url: '/system/gategory/'+id+'/'+status,
    method: 'delete'
  })
}

// 导出大神标签
export function exportGategory(query) {
  return request({
    url: '/system/gategory/export',
    method: 'get',
    params: query
  })
}